<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTasksTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('tasks', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('name');
			$table->text('context');
			$table->string('attachment');
			$table->integer('times');
			$table->decimal('price', 5, 2);
			$table->string('QQ');
			$table->string('phone',11);
			$table->string('defend_time');
			$table->integer('isBill')->default(0);
			$table->integer('isContract')->default(0);
			$table->integer('isTrademark')->default(0);
			$table->integer('isCopy')->default(0);
			$table->integer('isSoftcopy')->default(0);
			$table->integer('isDomain')->default(0);
			$table->integer('isApp')->default(0);
			$table->integer('isUrgent')->default(0);
			$table->integer('isSeach')->default(0);
			$table->integer('isTop')->default(0);
			$table->integer('isHide')->default(0);
			$table->integer('isDemand')->default(0);
			$table->integer('isHome')->default(0);
			$table->integer('status')->default(0);
			$table->timestamp('Dev_time');
			$table->integer('user_id');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('tasks');
	}

}
